package com.mrobuy.jdvc.entity;

import com.gavel.annotation.FieldMeta;
import com.gavel.annotation.TableMeta;
import com.gavel.database.SQLExecutor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@TableMeta(name = "VC_AUDIT_INFO", title = "审核信息")
public class VCAuditInfo {

    @FieldMeta(name = "APPLYID", title = "申请编号", length = 32, primary = true)
    private String applyId;

    @FieldMeta(name = "TASKID", title = "任务id", length = 64)
    private String taskid;

    @FieldMeta(name = "APPROVERCODE", title = "审核人员编码", length = 20)
    private String approvercode;

    @FieldMeta(name = "APPROVERNAME", title = "审核人员名称", length = 30)
    private String approvername;

    @FieldMeta(name = "OPINION", title = "审核建议", length = 1024)
    private String opinion;

    @FieldMeta(name = "STATE", title = "审核状态")
    private Integer state;

    @FieldMeta(name = "APPROVETIME", title = "审核时间")
    private Date approvetime;

    @FieldMeta(name = "ZT", title = "是否有效")
    private Integer zt;

    private List<VCAuditRecord> auditRecords = new ArrayList<>();

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }

    public String getTaskid() {
        return taskid;
    }

    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public String getApprovercode() {
        return approvercode;
    }

    public void setApprovercode(String approvercode) {
        this.approvercode = approvercode;
    }

    public String getApprovername() {
        return approvername;
    }

    public void setApprovername(String approvername) {
        this.approvername = approvername;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getApprovetime() {
        return approvetime;
    }

    public void setApprovetime(Date approvetime) {
        this.approvetime = approvetime;
    }

    public Integer getZt() {
        return zt;
    }

    public void setZt(Integer zt) {
        this.zt = zt;
    }

    public List<VCAuditRecord> getAuditRecords() {
        return auditRecords;
    }

    public void setAuditRecords(List<VCAuditRecord> auditRecords) {
        this.auditRecords = auditRecords;
    }

    public static void main(String[] args) throws Exception {
        SQLExecutor.createTable(VCAuditInfo.class);
    }

}
